﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DetailOrEditBook.aspx.cs" Inherits="TeachingManageSystem.Web.DetailOrEditBook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
      <link href="~/Styles/AddBook.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    	
    	  .divimg 
    	  {
    	  	position: absolute;
    	  	left: 840px;
    	  	top: 170px;
        }
          h2
        {
            margin-top: 10px;
            margin-bottom: 5px;
            text-align: center;
            line-height: 20px;
        }
          .divtext
        {
            float: left;
            width: 340px;
        	padding-left: 50px;
        }
          .style2
        {
            width: 75px;
        	font-size: 14px;
        }
          .btnAdd {

        	margin-right:  50px;
        	width: 60px;
        	height: 25px;
        }
         .btnCancle {
        	width: 60px;
        	height: 25px;
        }
         .WatermarkText {
        	font-size: 12px;
        	color: red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Inherit">
           </asp:ScriptManager>
      <div style="float: left; margin-top: 0px; background:  #EEF2FB;width: 777px; text-align: left;">
          <table width="100%">
            <tr>
                <td width="17" valign="top" background="page/images/mail_leftbg.gif">
                    <img src="page/images/left-top-right.gif" width="17" height="29" alt="" />
                </td>
                <td valign="top" background="page/images/content-bg.gif">
                    <table width="100%" height="31" class="left_topbg"
                        id="table2">
                        <tr>
                            <td height="31">
                                <div class="titlebt">
                                    修改教材</div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div class="divcontent">
            <h2>
                修改教材信息</h2>
                <div class="divtext">
                    <table style="height: 300px; width: 350px;">
                        <tr>
                            <td class="style2">
                                 <asp:Label ID="Label1" runat="server" Text="教材编号："></asp:Label> 
                            </td>
                            <td colspan="2">
                             <asp:TextBox ID="TbxBookNumber" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                <asp:Label ID="Label2" runat="server" Text="教材名:"></asp:Label>
                            </td>
                            <td colspan="2">
                                 <asp:TextBox ID="TbxBookName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                 <asp:Label ID="Label3" runat="server" Text="作者："></asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="TbxBookAuthor" runat="server"></asp:TextBox>
                            </td>

                        </tr>
                         <tr>
                            <td class="style2">
                                  <asp:Label ID="Label5" runat="server" Text="出版社："></asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="TbxBookPublished" runat="server"></asp:TextBox>
                            </td>

                        </tr>
                         <tr>
                            <td class="style2">
                                 <asp:Label ID="Label4" runat="server" Text="出版时间："></asp:Label>
                            </td>
                            <td colspan="2">
                                 <asp:TextBox ID="TbxBookPublishedTime" runat="server"></asp:TextBox>
                            </td>

                        </tr>

                        <tr>
                            <td class="style2">
                                 <asp:Label ID="Label6" runat="server" Text="单价"></asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="TbxBookPrice" runat="server"></asp:TextBox>
                            </td>

                        </tr>
                        <tr>
                            <td class="style2">
                                  <asp:Label ID="Label7" runat="server" Text="教材类别"></asp:Label>
                            </td>
                            <td colspan="2">
                                 <asp:DropDownList ID="DrpBookType" runat="server" Height="34px" Width="149px" 
                            DataTextField="Name" DataValueField="ID">
                        </asp:DropDownList>
                            </td>

                        </tr>
                        <tr>
                            <td class="style2">
                                 
                            </td>
                            <td colspan="2">
                                
                            </td>

                        </tr>
                    </table> 
                    <p style=" margin-left: 20px; width: 300px;">
                         <span style="float: left;">
                             <asp:Button ID="BtnEdited" runat="server" onclick="BtnEditedClick" Text="编辑" CssClass="btnAdd" />
                        <asp:Button ID="BtnEdit" runat="server" onclick="BtnEditClick" Text="编辑" CssClass="btnAdd" />
                         </span> 
                          <asp:Button ID="BtnExc" runat="server" Text="取消" onclick="BtnExcClick" CssClass="btnCancle" />
                    </p>
                </div>
                 <div class="divimg">
                       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                              <img alt="" src="" runat="server" id="img"  style="height: 357px; width: 270px" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                         <p class="upload_p" style="_width: 300px;">
                               <span style="font-size: 14px; padding-right: 10px;">上传：</span> 
                               <asp:FileUpload ID="FileUpload1" runat="server" />
                            </p>
                        
                           <p class="upload_p"><asp:Label ID="Label9" runat="server" Text="备注：" CssClass="lblRemark"></asp:Label>
                       
                            <asp:TextBox ID="TbxRemark" runat="server" Height="85px" TextMode="MultiLine" 
                                   Width="225px" CssClass="txtMultiLine"></asp:TextBox>
                       </p> 
                   
                            <p style="margin-left: 40px; width: 60px;">
                                <asp:Button ID="Button1" runat="server" OnClick="Button1Click" Text="上传"  
                                    Width="60px" Height="25px"/>
                            </p>
                 </div>
        </div>
      </div>
            </asp:Content>
